package com.liam.forum.service;

import com.liam.forum.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: LiamLMK
 * @CreateTime: 2024-10-01
 * @Description:
 * @Version: 1.0
 */

public interface IArticleReplyService {
    /**
     * 新增帖子回复
     * @param articleReply
     */
    @Transactional
    void create(ArticleReply articleReply);

    /**
     * 根据帖子Id查询所有的回复
     * @param articleId 帖子Id
     * @return
     */
    List<ArticleReply> selectByArticleId(Long articleId);

}
